package shun.demo.market;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import shun.demo.R;

/**
 * Created by chen on 3/4/14.
 */
public class MarketActivity extends Activity implements View.OnClickListener {

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.loop);
        findViewById(R.id.button).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.parse("market://details?id=net.stevemiller.android.referrertest&referrer=test"));
        intent.putExtra("test", "test");
        intent.putExtra("id", "1234567890");
        startActivity(intent);
    }
}